﻿using DataAccessObject;
using DataAccessObject.DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUSINESS
{
    public static class MonHocBUS
    {
        static MonHocDAO dao = new MonHocDAO();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static List<MONHOC> getAllMonHoc()
        {
            return dao.getAllMonHoc();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static List<MONHOC_BAN> getMonHocByBanHoc(BANLOPHOC banhoc)
        {
            return dao.getMonHocByBanHoc(banhoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="monhoc"></param>
        /// <param name="listKhoiLop"></param>
        public static void updateChiTietMonHocByMonHoc(MONHOC monhoc, List<KHOILOP> listKhoiLop)
        {
            dao.updateChiTietMonHocByMonHoc(monhoc, listKhoiLop);
        }
    }
}
